import 'package:demo_flutter/library.dart';

import 'action.dart';
import 'state.dart';

Widget buildView(MainState state, Dispatch dispatch, ViewService viewService) {
  return Scaffold(
    body: Container(
      alignment: Alignment.center,
      child: RaisedButton(
        child: Text('跳转webview'),
        onPressed: (){
          Navigator.pushNamed(viewService.context, 'ad_page');
        },
      ),
    ),
  );
}
